Skip to content

Add pytest-mrt under Testing > Database Migration Testing#3187

Closed
croc100 wants to merge 1 commit into
vinta:masterfrom
croc100:add-pytest-mrt
Closed

Add pytest-mrt under Testing > Database Migration Testing#3187
croc100 wants to merge 1 commit into
vinta:masterfrom
croc100:add-pytest-mrt

Conversation

@croc100
Copy link
Copy Markdown

@croc100 croc100 commented Jun 6, 2026

pytest-mrt is a pytest plugin for testing Alembic and Django migration rollback safety. It runs the actual up/down cycle against a real database and checks that data survives, and also does static analysis on migration files to catch things like missing downgrade(), DROP COLUMN in upgrade, etc.

Didn't see an existing section for migration testing tools so proposed a new subsection under Testing.

@croc100 croc100 closed this Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant